package com.sd365.gateway.authentication.service;

import com.sd365.common.core.common.api.CommonResponse;
import com.sd365.gateway.authen.pojo.vo.UserVO;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import java.util.HashMap;

/**
 * @Class AuthenticationService
 * @Description 认证服务接口，判断用户存在的逻辑在用户中心做，但是JWT规范生成token在认证服务做
 */
@Validated
public interface AuthenticationService {
    int LOGIN_VERIFY_CODE_SUCCESS=1;
    /**
     *  认证服务生成token
     * @Author: Administrator
     * @DATE: 2022-10-12  20:05
     * @param: 登录的账号，密码，租户
     * @return:  JWT token
     */
    HashMap doAuth(@NotBlank String code, @NotBlank String account, @NotBlank String password);
}
